c program to read and print one dimensional array